<template>
  <div style="height:100%">
    <div class="header">
      <navbar />
    </div>
    <div class="app-container">
      <transition name="fade-transform" mode="out-in">
        <router-view :key="key"/>
      </transition>
    </div>
  </div>
</template>

<script>
import Navbar from '@/components/Navbar'

export default {
  name: 'app',
  components: {
    Navbar
  },
  computed: {
    key() {
      return this.$route.path
    }
  }
}
</script>

<style lang="css" scoped>
.header{
  position: absolute;
  z-index: 999;
  height: 60px;
  width: 100%;
  line-height: 60px;
  background-color: #fff;
  box-shadow: 1px 1px 3px 1px rgba(2, 2, 2, 0.11);
}
.app-container{
  padding: 60px 40px;
  height: 100%;
  text-align: center;
  background-color: #f2f2f2;
}
</style>
